package org.jeecg.modules.common.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.common.entity.Address;
import org.jeecg.modules.common.facade.IAddressFacade;
import org.jeecg.modules.common.service.IAddressService;
import org.jeecg.modules.common.vo.AddressVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 地址
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class AddressFacadeImpl extends IFacadeImpl<AddressVo, Address, IAddressService>  implements IAddressFacade<AddressVo, Address> {
        @Autowired
        private IAddressService addressService;


         @Override
         public Address po2Vo(AddressVo vo) {
                Address po = new Address();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public AddressVo vo2Po(Address po) {
                AddressVo vo = new AddressVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
